<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterTableInvestmentEmployeeAddCity extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->unsignedTinyInteger('city')->default(0)->comment('专属城市')->after("direct");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->dropColumn('city');
        });
    }
}
